#!/bin/bash

set -e
set -x

# wget https://golang.google.cn/dl/go1.22.10.linux-amd64.tar.gz
bypy download go1.22.10.linux-amd64.tar.gz
tar xf go1.22.10.linux-amd64.tar.gz -C /opt/
cp go_env.sh /etc/profile.d/go_env.sh
ln -fs /opt/go/bin/go /usr/local/bin/go

set +x
set +e